package vista;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JSeparator;
import javax.swing.JTextField;
import javax.swing.ListModel;

import javax.swing.WindowConstants;
import javax.swing.border.LineBorder;
import javax.swing.SwingUtilities;

/**
 * This code was edited or generated using CloudGarden's Jigloo SWT/Swing GUI
 * Builder, which is free for non-commercial use. If Jigloo is being used
 * commercially (ie, by a corporation, company or business for any purpose
 * whatever) then you should purchase a license for each developer using Jigloo.
 * Please visit www.cloudgarden.com for details. Use of Jigloo implies
 * acceptance of these licensing terms. A COMMERCIAL LICENSE HAS NOT BEEN
 * PURCHASED FOR THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED LEGALLY FOR
 * ANY CORPORATE OR COMMERCIAL PURPOSE.
 */
public class UbicacionMesas extends javax.swing.JFrame {
	private JPanel jPanel1;
	private JButton buscar;
	private JButton cancelar;
	private JButton aceptar;
	private JTextField numeroMesa;
	private JLabel jLabel2;
	private JLabel jLabel3;
	private JList jList1;
	private JSeparator jSeparator3;
	private JLabel jLabel4;
	private JSeparator jSeparator2;
	private JButton quitar;
	private JButton agregar;
	private JSeparator jSeparator1;
	private JComboBox vecinos;
	private JLabel jLabel1;
	private JPanel jPanel2;

	/**
	 * Auto-generated main method to display this JFrame
	 */
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				UbicacionMesas inst = new UbicacionMesas();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}

	public UbicacionMesas() {
		super();
		initGUI();
	}

	public UbicacionMesas(String numeroMesa1) {
		super();
		initGUI(numeroMesa1);
	}

	private void initGUI(String numeroMesa1) {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			this.setLocationRelativeTo(null);
			{
				jPanel1 = new JPanel();
				getContentPane().add(jPanel1);
				jPanel1.setBounds(-6, 69, 518, 364);
				jPanel1.setBackground(new java.awt.Color(206, 223, 183));
				jPanel1.setLayout(null);
				{
					jLabel2 = new JLabel();
					jPanel1.add(jLabel2);
					jLabel2.setText("Numero");
					jLabel2.setBounds(27, 30, 66, 16);
				}
				{
					numeroMesa = new JTextField();
					jPanel1.add(numeroMesa);
					numeroMesa.setText(numeroMesa1);
					numeroMesa.setEditable(false);
					numeroMesa.setBounds(93, 27, 103, 23);
				}
				{
					aceptar = new JButton();
					jPanel1.add(aceptar);
					aceptar.setText("Aceptar");
					aceptar.setBounds(125, 330, 87, 23);
					aceptar.setBackground(new java.awt.Color(170, 200, 130));
					aceptar.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out
									.println("aceptar.actionPerformed, event="
											+ evt);
							// TODO add your code for aceptar.actionPerformed
						}
					});
				}
				{
					cancelar = new JButton();
					jPanel1.add(cancelar);
					cancelar.setText("Cancelar");
					cancelar.setBounds(229, 330, 88, 23);
					cancelar.setBackground(new java.awt.Color(170, 200, 130));
					cancelar.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out
									.println("cancelar.actionPerformed, event="
											+ evt);
							// TODO add your code for cancelar.actionPerformed
						}
					});
				}
				{
					jLabel3 = new JLabel();
					jPanel1.add(jLabel3);
					jLabel3.setText("Vecinos");
					jLabel3.setBounds(27, 77, 54, 16);
				}
				{
					ComboBoxModel vecinosModel = new DefaultComboBoxModel(
							new String[] { "Mesa 1", "Mesa 2", "Mesa 3",
									"Mesa 4" });
					vecinos = new JComboBox();
					jPanel1.add(vecinos);
					vecinos.setModel(vecinosModel);
					vecinos.setBounds(93, 74, 103, 23);
					vecinos.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out
									.println("vecinos.actionPerformed, event="
											+ evt);
							// TODO add your code for vecinos.actionPerformed
						}
					});
				}
				{
					jSeparator1 = new JSeparator();
					jPanel1.add(jSeparator1);
					jSeparator1.setBounds(6, 58, 512, 10);
				}
				{
					agregar = new JButton();
					jPanel1.add(agregar);
					agregar.setText("Agregar");
					agregar.setBounds(223, 73, 94, 23);
					agregar.setBackground(new java.awt.Color(170, 200, 130));
					agregar.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out
									.println("agregar.actionPerformed, event="
											+ evt);
							// TODO add your code for agregar.actionPerformed
						}
					});
				}
				{
					ListModel jList1Model = new DefaultComboBoxModel(
							new String[] { "Item One", "Item Two" });
					jList1 = new JList();
					jPanel1.add(jList1);
					jList1.setModel(jList1Model);
					jList1.setBounds(93, 164, 103, 129);
					jList1.setBorder(new LineBorder(
							new java.awt.Color(0, 0, 0), 1, false));
				}
				{
					quitar = new JButton();
					jPanel1.add(quitar);
					quitar.setText("Quitar");
					quitar.setBounds(223, 164, 94, 23);
					quitar.setBackground(new java.awt.Color(170, 200, 130));
					quitar.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out.println("quitar.actionPerformed, event="
									+ evt);
							// TODO add your code for quitar.actionPerformed
						}
					});
				}
				{
					jSeparator2 = new JSeparator();
					jPanel1.add(jSeparator2);
					jSeparator2.setBounds(0, 115, 518, 10);
				}
				{
					jLabel4 = new JLabel();
					jPanel1.add(jLabel4);
					jLabel4.setText("Vecinos");
					jLabel4.setBounds(95, 131, 103, 21);
					jLabel4.setFont(new java.awt.Font("Segoe UI", 0, 14));
				}
				{
					jSeparator3 = new JSeparator();
					jPanel1.add(jSeparator3);
					jSeparator3.setBounds(6, 312, 462, 10);
				}
			}
			{
				jPanel2 = new JPanel();
				getContentPane().add(jPanel2);
				jPanel2.setBounds(0, 0, 512, 70);
				jPanel2.setBackground(new java.awt.Color(172, 201, 133));
				jPanel2.setLayout(null);
				{
					jLabel1 = new JLabel();
					jPanel2.add(jLabel1);
					jLabel1.setText("Ubicacion de Mesas");
					jLabel1.setBounds(14, 19, 428, 45);
					jLabel1.setFont(new java.awt.Font("Andalus", 0, 36));
				}
			}
			pack();
			this.setSize(466, 470);
		} catch (Exception e) {
			e.printStackTrace();
		}

	}

	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			this.setLocationRelativeTo(null);
			{
				jPanel1 = new JPanel();
				getContentPane().add(jPanel1);
				jPanel1.setBounds(-6, 69, 518, 364);
				jPanel1.setBackground(new java.awt.Color(206, 223, 183));
				jPanel1.setLayout(null);
				{
					jLabel2 = new JLabel();
					jPanel1.add(jLabel2);
					jLabel2.setText("Numero");
					jLabel2.setBounds(27, 30, 66, 16);
				}
				{
					numeroMesa = new JTextField();
					jPanel1.add(numeroMesa);
					numeroMesa.setBounds(93, 27, 103, 23);
				}
				{
					aceptar = new JButton();
					jPanel1.add(aceptar);
					aceptar.setText("Aceptar");
					aceptar.setBounds(125, 330, 87, 23);
					aceptar.setBackground(new java.awt.Color(170, 200, 130));
					aceptar.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out
									.println("aceptar.actionPerformed, event="
											+ evt);
							// TODO add your code for aceptar.actionPerformed
						}
					});
				}
				{
					cancelar = new JButton();
					jPanel1.add(cancelar);
					cancelar.setText("Cancelar");
					cancelar.setBounds(229, 330, 88, 23);
					cancelar.setBackground(new java.awt.Color(170, 200, 130));
					cancelar.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out
									.println("cancelar.actionPerformed, event="
											+ evt);
							// TODO add your code for cancelar.actionPerformed
						}
					});
				}
				{
					buscar = new JButton();
					jPanel1.add(buscar);
					buscar.setText("Buscar");
					buscar.setBounds(223, 25, 94, 24);
					buscar.setBackground(new java.awt.Color(170, 200, 130));
					buscar.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out.println("buscar.actionPerformed, event="
									+ evt);
							// TODO add your code for buscar.actionPerformed
						}
					});
				}
				{
					jLabel3 = new JLabel();
					jPanel1.add(jLabel3);
					jLabel3.setText("Vecinos");
					jLabel3.setBounds(27, 77, 54, 16);
				}
				{
					ComboBoxModel vecinosModel = new DefaultComboBoxModel(
							new String[] { "Mesa 1", "Mesa 2", "Mesa 3",
									"Mesa 4" });
					vecinos = new JComboBox();
					jPanel1.add(vecinos);
					vecinos.setModel(vecinosModel);
					vecinos.setBounds(93, 74, 103, 23);
					vecinos.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out
									.println("vecinos.actionPerformed, event="
											+ evt);
							// TODO add your code for vecinos.actionPerformed
						}
					});
				}
				{
					jSeparator1 = new JSeparator();
					jPanel1.add(jSeparator1);
					jSeparator1.setBounds(6, 58, 512, 10);
				}
				{
					agregar = new JButton();
					jPanel1.add(agregar);
					agregar.setText("Agregar");
					agregar.setBounds(223, 73, 94, 23);
					agregar.setBackground(new java.awt.Color(170, 200, 130));
					agregar.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out
									.println("agregar.actionPerformed, event="
											+ evt);
							// TODO add your code for agregar.actionPerformed
						}
					});
				}
				{
					ListModel jList1Model = new DefaultComboBoxModel(
							new String[] { "Item One", "Item Two" });
					jList1 = new JList();
					jPanel1.add(jList1);
					jList1.setModel(jList1Model);
					jList1.setBounds(93, 164, 103, 129);
					jList1.setBorder(new LineBorder(
							new java.awt.Color(0, 0, 0), 1, false));
				}
				{
					quitar = new JButton();
					jPanel1.add(quitar);
					quitar.setText("Quitar");
					quitar.setBounds(223, 164, 94, 23);
					quitar.setBackground(new java.awt.Color(170, 200, 130));
					quitar.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out.println("quitar.actionPerformed, event="
									+ evt);
							// TODO add your code for quitar.actionPerformed
						}
					});
				}
				{
					jSeparator2 = new JSeparator();
					jPanel1.add(jSeparator2);
					jSeparator2.setBounds(0, 115, 518, 10);
				}
				{
					jLabel4 = new JLabel();
					jPanel1.add(jLabel4);
					jLabel4.setText("Vecinos");
					jLabel4.setBounds(95, 131, 103, 21);
					jLabel4.setFont(new java.awt.Font("Segoe UI", 0, 14));
				}
				{
					jSeparator3 = new JSeparator();
					jPanel1.add(jSeparator3);
					jSeparator3.setBounds(6, 312, 462, 10);
				}
			}
			{
				jPanel2 = new JPanel();
				getContentPane().add(jPanel2);
				jPanel2.setBounds(0, 0, 512, 70);
				jPanel2.setBackground(new java.awt.Color(172, 201, 133));
				jPanel2.setLayout(null);
				{
					jLabel1 = new JLabel();
					jPanel2.add(jLabel1);
					jLabel1.setText("Ubicacion de Mesas");
					jLabel1.setBounds(14, 19, 428, 45);
					jLabel1.setFont(new java.awt.Font("Andalus", 0, 36));
				}
			}
			pack();
			this.setSize(466, 470);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
